#include <iostream>
using namespace std;

class Circle{
	double radius;
	
public:
	Circle(double r) : radius(r){}
	double getRadius() const {return radius;}
};

class Rectangle{
	double length;
	double width;
	
public :
	Rectangle(double l,double w) : length(l),width(w){}
	double getLength() const
	{return length;}
	double getWidth() const
	{return width;}
};

class Area{
public:
	static double calArea(const Circle& c){
		return 3.1415926 * c.getRadius() * c.getRadius();
	}
	static double calArea(const Rectangle& r){
		return r.getWidth() * r.getLength();
	}
};